<?php
include('connection.php');
$name = $user_name;
$surname = $user_surname;
$group = $user_group;
$faculty = $_POST['faculty'];
$lesson = $_POST['lesson'];
if(!isset($_POST['tick']))
{
	$tick = "new";
}
else
{
	$tick = $_POST['tick'];
}
$login = $user_login;
$teacher = $_POST['teacher'];
$query="INSERT INTO students_register VALUES ('','$name','$surname','$faculty', '$group', '$lesson', '$tick','$login', $teacher);";
$result = mysql_query($query); 
$_SESSION['alert'] = $result;
header( "Location: ../student_registration.php");
?>
